using Dew.Math;
using Dew.Math.Units;
namespace Dew.Examples()
{
void Example()
{
TOpenCLVector a,b,c;
clMtxVec.CreateIt(
out a,
out b,
out c);
try
{
a.CopyCplxFromArray(
new double[] {1,2, 3,4});
// 1+2i ; 3+4i
b.CopyCplxFromArray(
new double[] {2,2,3,4});
// 2+2i ; 3+4i
c.RealToCplx(a,b);
}
finally
{
clMtxVec.FreeIt(
ref a,
ref b,
ref c);
}
}
}